Keyboard does not work in DOS due to bad keyboard.

Cause:


The original keyboard that was plugged into the computer was bad.

Solution:


Replace the keyboard with another compatible keyboard.